import http from '../utils/request.js'


// 个人信息
export function getInfo() {
	return http({
		url: '/My/myUser',
		method: 'GET',
	})
}

// 好友贡献度查询
export function friendContrib() {
	return http({
		url: '/My/friendContrib',
		method: 'GET',
	})
}

// 个人信息查询
export function myUser() {
	return http({
		url: '/My/myUser',
		method: 'GET',
	})
}

// 用户等级设置查询
export function userlevelConfig() {
	return http({
		url: '/friend/userlevelConfig',
		method: 'GET',
	})
}


//支付宝认证
export function alipayAccredit(data) {
	return http({
		url: '/Settings/alipayAccredit',
		method: 'POST',
		data: data
	});
};


// 取消支付宝认证
export function cancAlipayAuth() {
	return http({
		url: '/Settings/cancAlipayAuth',
		method: 'POST'
	});
};

// 上传头像文件
export function upload(data) {
	return http({
		url: '/Settings/upload',
		method: 'POST',
		data: data
	});
};

// 基础信息查询
export function myUserSee() {
	return http({
		url: '/Settings/myUserSee',
		method: 'GET',
	})
}

// 基础信息更新
export function myUserUpdate(data) {
	return http({
		url: '/Settings/myUserUpdate',
		method: 'POST',
		data: data
	});
};

// 会员卡查询
export function vipCardList() {
	return http({
		url: '/Card/vipCardList',
		method: 'GET',
	})
}

//会员卡兑换
export function redemption(data) {
	return http({
		url: '/Card/redemption',
		method: 'POST',
		data: data
	});
};


// 分享
export function inviteFriends() {
	return http({
		url: '/Share/inviteFriends',
		method: 'GET',
	})
}


// 全部贡献度
export function allDegree() {
	return http({
		url: '/friend/allDegree',
		method: 'GET',
	})
}

// 直推好友分页列表
export function directReferral(data) {
	return http({
		url: '/friend/directReferral',
		method: 'GET',
		data
	});
};

// 间推好友分页列表
export function indirectReferral(data) {
	return http({
		url: '/friend/indirectReferral',
		method: 'GET',
		data
	});
};


// 公告列表
export function annOunListPage(data) {
	return http({
		url: '/annOun/annOunListPage',
		method: 'GET',
		data
	});
};

// 公告列表
export function annOunSee(data) {
	return http({
		url: '/annOun/annOunSee',
		method: 'GET',
		data
	});
};


// 转赠
export function gifting(data) {
	return http({
		url: '/transfer/gifting',
		method: 'POST',
		data: data
	});
};

// 转赠记录查询
export function giftingInfo(data) {
	return http({
		url: '/transfer/giftingInfo',
		method: 'GET',
		data
	});
};

// 流水记录
export function amountInfo(data) {
	return http({
		url: '/recordAmount/amountInfo',
		method: 'GET',
		data
	});
};

// 卡券列表
export function couponList() {
	return http({
		url: '/Coupon/couponList',
		method: 'GET'
	});
};

// 激活会员卡
export function activate(data) {
	return http({
		url: '/Coupon/activate',
		method: 'POST',
		data: data
	});
};

// 转赠会员卡
export function couponGifting(data) {
	return http({
		url: '/Coupon/couponGifting',
		method: 'POST',
		data: data
	});
};

// 背包管理-合成石查询
export function syntheticMalist() {
	return http({
		url: '/backpack/syntheticMalist',
		method: 'GET'
	});
};


// 背包管理-合成石合成
export function syntheticMa(data) {
	return http({
		url: '/backpack/syntheticMa',
		method: 'POST',
		data: data
	});
};


// 背包管理-宝箱查询
export function boxList() {
	return http({
		url: '/backpack/boxList',
		method: 'GET'
	});
};


// 背包管理-打开宝箱
export function openBox(data) {
	return http({
		url: '/backpack/openBox',
		method: 'POST',
		data: data
	});
};

// 靓号列表
export function goodNumberList(data) {
	return http({
		url: '/goodNumber/list',
		method: 'GET',
		data
	});
};


// 购买靓号
export function idNumberBuy(data) {
	return http({
		url: '/goodNumber/idNumberBuy',
		method: 'POST',
		data: data
	});
};


// 通知中心
export function getOne(data) {
	return http({
		url: '/notification/getOne',
		method: 'GET'
	});
};


// 飞机记录查询
export function airplaneUserPage(data) {
	return http({
		url: '/SynthInfo/airplaneUserPage',
		method: 'GET',
		data: data
	});
};

// 合成石记录查询
export function synthInfoUserPage(data) {
	return http({
		url: '/SynthInfo/synthInfoUserPage',
		method: 'GET',
		data: data
	});
};

// 道具记录查询
export function listPage(data) {
	return http({
		url: '/propsInfo/listPage',
		method: 'GET',
		data: data
	});
};

// 卡券记录查询
export function couponInfo(data) {
	return http({
		url: '/couponInfo/listPage',
		method: 'GET',
		data: data
	});
};

// 获取VIP卡列表
export function issueCardList(data) {
	return http({
		url: '/couponInfo/issueCardList',
		method: 'GET',
		data: data
	});
};

// 达标等级查询
export function myUserLevel(data) {
	return http({
		url: '/My/myUserLevel',
		method: 'GET',
		data: data
	});
};